package study.saas.order.repo;

import study.saas.common.repo.BaseRepoV2;
import study.saas.order.entity.Orders;

import java.util.List;

/**
 * @author zxx
 */
public interface OrdersRepo extends BaseRepoV2<Orders,String> {

    Orders findFirstByUserName(String userName);
    Orders findFirstByCommodityName(String commodityName);
    List<Orders> findAllByUserName(String userName);
    List<Orders> findAllByCommodityName(String commodityName);
}
